	$(function(){
        //按钮单击时执行
        $("#admin_pay_no_do").click(function(){
			toastr.options = {
			  "closeButton": true,
			  "debug": false,
			  "progressBar": true,
			  "positionClass": "toast-bottom-full-width",
			  "onclick": null,
			  "showDuration": "400",
			  "hideDuration": "1000",
			  "timeOut": "7000",
			  "extendedTimeOut": "1000",
			  "showEasing": "swing",
			  "hideEasing": "linear",
			  "showMethod": "fadeIn",
			  "hideMethod": "fadeOut"
			}
			//输入验证
			if($("#pay_id").val() == ""){  
                toastr.warning("ID不能为空！");  
                $("#pay_id").focus();  
                return false;  
            }
			if($("#pay_liyou").val() == ""){  
                toastr.warning("拒绝理由不能为空！");  
                $("#pay_liyou").focus();  
                return false;  
            }  
			var pay_id = $('#pay_id').val();
			var pay_liyou = $('#pay_liyou').val();
            //Ajax调用处理
            var admin_pay_no_do = $.ajax({
               type: "POST",
               url: "index.php?m=pay&c=pay_admin&a=admin_pay_no_do",
               data: "pay_id="+pay_id+"&pay_liyou="+pay_liyou,
               async: false
            }).responseText;
			if (admin_pay_no_do == "1"){
				toastr.info("操作失败！");
			} else if (admin_pay_no_do == "2") {
				toastr.success("操作成功！");
			} else {
				toastr.error("请勿提交非法数据！");
			}
         });		 
    });